#include "Camera.h"

// Get Transform Matrix.
Matrix *Camera::GetTransform()
{
    transformMatrix.Reset();
    
    transformMatrix.RotateX(-rotation.x);
    transformMatrix.RotateY(-rotation.y);
    transformMatrix.RotateZ(-rotation.z);
    
	   // Translate in the manner of the camera.
    transformMatrix.Translate(-position.x, -position.y, -position.z);
    
    return &transformMatrix;
}

